//
//  VisionModular.swift
//  App_Vision
//
//  Created by Flutter on 2021/7/22.
//

import Foundation
import UIKit
import Standard

class VisionModular: Modular {
    static func image(named name: String) -> UIImage? {
        UIImage(named: name, in: VisionModular.bundle, compatibleWith: nil)?.withRenderingMode(.alwaysOriginal)
    }
}


extension String {
    static func localized(_ string: String) -> String {
        VisionModular.localizedString(key: string)
    }
}

extension UIImage {
    static func image(named name: String) -> UIImage? {
        VisionModular.image(named: name)
    }
}

